{extend name="public:_base" /}
{block name="main"}

<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 品牌管理  <span
        class="c-gray en">&gt;</span> 品牌栏目 <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px"
                                              href="javascript:location.replace(location.href);" title="刷新"><i
        class="Hui-iconfont">&#xe68f;</i></a></nav>


<div class="page-container">

    <div class="cl pd-5 bg-1 bk-gray mt-20"><span class="l">
        <a class="btn btn-primary radius" onclick="edit('添加','{:url('ProductCate/add')}')" href="javascript:;">
        <i class="Hui-iconfont">&#xe600;</i> 添加</a></span> <span class="r">共有数据：<strong>{$num}</strong> 条</span>
    </div>

    <div class="mt-20">
        <table class="table table-border table-bordered table-bg table-hover table-sort">
            <thead>
            <tr class="text-c">
                <th width="40"><input name="" type="checkbox" value=""></th>
                <th width="40">ID</th>
                <th width="100">名称</th>
                <th width="100">排序</th>
                <th width="100">创建时间</th>
                <th width="100">操作</th>
            </tr>
            </thead>
            <tbody>
            {volist name="list" id="vo"}
                <tr class="text-c va-m">
                    <td><input name="id" type="checkbox" value="{$vo.id}"></td>
                    <td>{$vo.id}</td>
                    <td class="text-l">
                        {$vo.level}{$vo.name}
                    </td>
                    <td>
                       {$vo.sort|sortby=$vo.id}
                    </td>
                    <td>
                        {$vo.create_time}
                    </td>
                    <td class="td-manage">
                        <a style="text-decoration:none" class="btn btn-xs btn-success" onClick="edit('编辑','{:url('ProductCate/edit',['id'=>$vo.id])}','10001')" href="javascript:;" title="编辑">编辑</a>
                        <a style="text-decoration:none" class="btn btn-xs btn-danger" onClick="del(this,'{:url('ProductCate/del',['id'=>$vo.id])}','10001')" href="javascript:;" title="删除">删除</a>
                    </td>
                </tr>
            {/volist}
            </tbody>
        </table>
    </div>
</div>
</div>

{/block}